package com.itheima.reggie.service;

import com.itheima.reggie.dto.OrdersDto;
import com.itheima.reggie.entity.Orders;
import com.itheima.reggie.entity.Page;

import java.time.LocalDateTime;
import java.util.List;

public interface OrdersService {

    /**
     * 添加订单
     * @param orders
     * @return
     */
    void addOrders(Orders orders,Long userId);


    /**
     * 根据用户id查找订单
     * @param page
     * @param pageSize
     * @param userId
     * @return
     */
    Page<OrdersDto> findOrdersByUserId(Integer page, Integer pageSize, Long userId, String number, LocalDateTime startTime, LocalDateTime endTime);





}
